package com.example.datastructures;

public class TreeNode {
	private int value;
	private TreeNode right;
	private TreeNode left;
	
	public TreeNode(int nodeValue, TreeNode rightNode, TreeNode leftNode){
		value = nodeValue;
		right = rightNode;
		left = leftNode;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public TreeNode getRight() {
		return right;
	}

	public void setRight(TreeNode right) {
		this.right = right;
	}

	public TreeNode getLeft() {
		return left;
	}

	public void setLeft(TreeNode left) {
		this.left = left;
	}
}